# -*- coding:utf-8 -*-
# @time    : 2021/9/6 7:12
# @Author  : zhang jin xia
# @Filename: PyCharm

import logging
# 添加日志信息
logging.basicConfig(Level=logging.DEBUG,
                    log_format="%(asctime)s (%(levelname)s %(message)s (%(filename)s:%(lineno)s)",
                    log_date_format ="%Y-%m-%d %H:%M:%S",
                    log_file ="log.log",
                    log_file_format ="%(asctime)s (%(levelname)s %(message)s (%(filename)s:%(lineno)s)",
                    log_file_date_format ="%Y-%m-%d %H:%M:%S",
                    filemode="w")